package com.study.designPattern.observer.example;

/**
 * 创建人： HBZ，时间： 2017/8/22 11:26.
 * 说明：
 */
public class Accountant extends JobStation {
    private String accountantState;
//    private Customer customer;
//    public Accountant(Customer customer){
//        this.customer=customer;
//    }

    @Override
    public void Update(Customer customer) {
        if (customer.getCustomerState() == "已付款")
        {
            System.out.println("我是会计，我来开具发票。");
            accountantState = "已开发票！！！";
        }
    }
}
